{% extends "security/base.html" %}
{% from "security/_macros.html" import render_field_with_errors, render_field %}
{% include "security/_messages.html" %}

{% block content %}



    <h3>xAdmin Login</h3>
    <hr>
    <form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
        {{ login_user_form.hidden_tag() }}
        <div style="font-size: 16px">
            email:
            {{ login_user_form.email(class="form-control") }}
            password:
            {{ login_user_form.password(class="form-control") }}

            <div style="font-size: 12">
                {{ login_user_form.remember }}
                Remember me
            </div>

            <div style="color: red; font-size: 16px">
                {% if login_user_form.password.errors %}

                    {% for error in login_user_form.password.errors %}
                        {{ error }}
                    {% endfor %}

                {% endif %}

                {% if login_user_form.email.errors %}

                    {% for error in login_user_form.email.errors %}
                        {{ error }}
                    {% endfor %}

                {% endif %}

            </div>


            {{ render_field(login_user_form.next) }}

            {{ login_user_form.submit(class='btn btn-success') }}

        </div>

        </div>


    </form>


{% endblock %}

